package cn.virens.cmpt.rabbit;

import cn.virens.cmpt.rabbit.packet.Packet;
import cn.virens.cmpt.rabbit.packet.PacketReply;

public interface RabbitManager {

	/** 交换中心 */
	String getExchange();

	/** 路由规则 */
	String getRoutingKey();

	boolean send(Packet packet);

	boolean sendRabbit(Packet packet);

	boolean sendRabbit(String routingKey, Packet packet);

	boolean sendRabbit(String exchange, String routingKey, Packet packet);

	boolean sendReply(RabbitConsumerProps props, PacketReply packetReply);

}
